<?php

namespace app\base\validate;

use think\Validate;

class Menu extends Validate {
  protected $rule = [
    'parent_id|菜单名称' => 'require|gt:0',
    'title|菜单名称'     => 'require|max:25',
  ];
  protected $message = [
    'parent_id.gt' => '必须选择上级菜单',
  ];
}